<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>05-匿名函数</title>

</head>
<body>

<script>
    function  method01(){
        console.log("method01");
    }
    method01();

    let method02 = function (){
        console.log("method02");
    }
    method02()
</script>

<script>

    let jsObj = {
        name : "zs",
        age : 18,
        speak : function (){
            console.log("我叫:" + this.name);
        },
        show(){
            console.log("我的年龄是" + this.age);
        }
    }
    jsObj.speak()
    jsObj.show()

</script>

</body>
</html>